package com.fengyi.homefurnish.service.impl;

import com.fengyi.homefurnish.mapper.StockManagerMapper;
import com.fengyi.homefurnish.pojo.StockInfo;
import com.fengyi.homefurnish.pojo.StoreInfo;
import com.fengyi.homefurnish.service.StockManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2018/3/14.
 */
@Service("stockManagerService")
@Transactional
public class StockManagerServiceImpl implements StockManagerService {

    @Resource
    private StockManagerMapper stockManagerMapper;

    @Override
    public List<StockInfo> getAll() {
        return stockManagerMapper.searchStoreCount();
    }
}
